Setup Apple Push Notification Service
Here, you'll learn how to set up all the Group Link iOS SDK functions to establish the p8 Token-Based Connection to APNs for your project.
Requirements
- You'll need an iOS mobile app to proceed with the setup.
- Paid Apple Developer Account with Admin Role.
- Ensure you have an Xcode project with Push Notification capability added. Without this, your project may not appear in the Apple Developer Center.
Step 1 - Generate a new p8 key
Log in to your Paid Apple Developer Account, then navigate to Certificates, Identifiers & Profiles > Keys, and select the Blue + button.
Apple Developer Account
Apple Developer Account - Keys Page
Select "Apple Push Notifications service (APNs)" and enter a name for the key.
Apple Developer Account - Register a New Key Page. Select APNs.
Select "Continue", and on the following page, click on "Register".
Download your new key and ensure to save it in a secure location. Remember, you can only download it once, so be careful not to lose it. Afterward, click "Done," and you'll have a new key ready for use.
Warning: Prior Token Revocation: You can hold a maximum of two .p8 keys in your Apple account. If you need to generate a third key, you must revoke one of your existing keys, rendering it unusable. Note: .p8 keys are found in the "keys" section of the Apple developer account, while .p12 certificates are located under "certificates". In your Apple account, you can maintain both active .p12s and .p8s.
Step 2 - Setting up your .p8 file
Configure your push keys and set up your .p8 file.
- Key (.p8 file): This refers to the file you downloaded in Step 1 from your Apple Developer Account.
- Key ID: This serves as the unique identifier for the p8 authentication key. You can locate your Key ID in the keys section of your Apple developer account. Ensure to use the key corresponding to the p8 key you downloaded in Step 1.
Apple Developer Account - View Key Details.
- Team ID: The Team ID is generated by Apple for your developer account. You can find it in the top right corner of your Apple developer account.
Apple Developer Account
- App Bundle ID: The Bundle ID serves to identify your app within the Apple ecosystem. You can locate your Bundle ID in the Identifiers section of your Apple developer account or within Xcode by navigating to Main App Target > General > Identity.
Apple Developer Account - Identifiers
Apple Developer Account - Identifiers. App Bundle ID.
The subsequent step involves configuring your iOS Application within the Group Link Dashboard.